<template>
  <div>
    <router-view></router-view>
    <van-tabbar
      v-model="active"
      active-color="red"
      :border="flag"
      :fixed="flag"
      route
    >
      <van-tabbar-item to="/index" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/category" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/attention" icon="friends-o"
        >我的关注</van-tabbar-item
      >
      <van-tabbar-item to="/personal" icon="setting-o"
        >个人中心</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
      flag: true,
    };
  },
};
</script>

<style scoped>
@import "http://at.alicdn.com/t/font_1426139_h6vn3jbl5q.css";
</style>